
const { ccclass, property } = cc._decorator;

@ccclass
export default class RotationComp extends cc.Component {


    @property
    time: number = 1;

    @property
    dir: number = 1;

    start() {
        cc.tween(this.node).by(this.time, { angle: this.dir * 360 }).repeatForever().start();
    }

    // update (dt) {}
}
